/**
  ******************************************************************************
  * File Name          : Route_strstr.c
  * Description        : This file provides code for the configuration
  *                      of the edp app instances.
  ******************************************************************************
  * @attention
  ******************************************************************************
  */
#include <stdio.h>
#include <string.h>
#include "tskcfg.h"
#include "route_str.h"

/* PID */
const char Route_str_pids[16][ROUTE_PID_BUFLEN] = 
{
  "\0\0\0\0\0\0\0\0\0\0\0\0",
  ROUTE_PID_GW,
  "\0\0\0\0\0\0\0\0\0\0\0\0",
  "\0\0\0\0\0\0\0\0\0\0\0\0",
  "\0\0\0\0\0\0\0\0\0\0\0\0",
  ROUTE_PID_HK,   /* 5 */
  "\0\0\0\0\0\0\0\0\0\0\0\0",
  ROUTE_PID_XC,   /* 7 */
  ROUTE_PID_LX,   /* 8 */
  ROUTE_PID_ZL,
  ROUTE_PID_CF,   /* 10 */
  ROUTE_PID_SP,
  ROUTE_PID_SW,
  ROUTE_PID_SD,   /* 13 */
  ROUTE_PID_DK,   /* 14 */
  "\0\0\0\0\0\0\0\0\0\0\0\0",
};

const char Route_str_Pub_Property_Post[44]    = "$sys/"ROUTE_PID_GW"/%s/thing/property/post";    /* 网关属性备上报 */
const char Route_str_Pub_Pack_Post[40]        = "$sys/"ROUTE_PID_GW"/%s/thing/pack/post";        /* 批量上报 */
const char Route_str_Pub_Devicesub_Login[38]  = "$sys/"ROUTE_PID_GW"/%s/thing/sub/login";        /* 子设备上线 */
const char Route_str_Pub_Devicesub_Logout[40] = "$sys/"ROUTE_PID_GW"/%s/thing/sub/logout";       /* 子设备下线 */
const char Route_str_Pub_Topology_Getdev[40]  = "$sys/"ROUTE_PID_GW"/%s/thing/sub/topo/get";     /* 子设备添加 */
const char Route_str_Pub_Topology_Adddev[40]  = "$sys/"ROUTE_PID_GW"/%s/thing/sub/topo/add";     /* 子设备添加 */
const char Route_str_Pub_Topology_Deldev[44]  = "$sys/"ROUTE_PID_GW"/%s/thing/sub/topo/delete";  /* 子设备删除 */

const char Route_str_Sub_Service_All[38]      = "$sys/"ROUTE_PID_GW"/%s/thing/service/#";        /* 服务订阅 */


const char Route_token_products_gw[] = "products/"ROUTE_PID_GW"/devices/%s";
const char Route_token_products_hk[] = "products/"ROUTE_PID_HK"/devices/%s";
const char Route_token_products_lx[] = "products/"ROUTE_PID_LX"/devices/%s";
const char Route_token_products_xc[] = "products/"ROUTE_PID_XC"/devices/%s";
const char Route_token_products_cf[] = "products/"ROUTE_PID_CF"/devices/%s";
const char Route_token_products_dk[] = "products/"ROUTE_PID_DK"/devices/%s";
const char Route_token_products_sd[] = "products/"ROUTE_PID_SD"/devices/%s";
